import { createRouter,createWebHistory } from "vue-router";
import Dashboard from "@/views/Dashboard.vue";
import Login from '@/views/Login.vue'
const routes = [
  {
    path: "/",
    name: "home",
    component: Dashboard,
  },
//   {
//     path: "/about",
//     name: "about",
//     component: () => import("../views/About.vue"),
//   },
  {
    path: "/login",
    name: "login",
    component: Login,
  },
  {
    path: "/device/details",
    name: "details",
    component: ()=>import('@/views/device/Details.vue')
  },
  {
    path: "/device/deviceinfo",
    name: "deviceinfo",
    component: ()=>import('@/views/device/DeviceInfo.vue')
  },
  {
    path: "/device/devicemanagement",
    name: "devicemanagement",
    component: ()=>import('@/views/device/DeviceManage.vue')
  }
]
const router=createRouter({
    history:createWebHistory(),
    routes
  });

  export default router